#include "SetNewZigbeeNetCmd.h"

CreataNewZigbeeCmd::CreataNewZigbeeCmd(QObject *parent) :
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::ZigbeeConfigProtocol;
    this->m_functionCode = FunctionCode;
}

Package CreataNewZigbeeCmd::toPackage()
{
    Package package;
    package.setFunction(FunctionCode);
    return package;
}

void CreataNewZigbeeCmd::unPackage(Package package)
{
    QByteArray body = package.body();
  //  m_isSucceed = body.mid(0,1).toHex().toUInt();
}


AllowNewJoinCmd::AllowNewJoinCmd(QObject *parent):
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::ZigbeeConfigProtocol;
    this->m_functionCode = FunctionCode;
}

Package AllowNewJoinCmd::toPackage()
{
    Package package;
    package.setFunction(FunctionCode);
    return package;
}

void AllowNewJoinCmd::unPackage(Package package)
{
    QByteArray body = package.body();
  //  m_isSucceed = body.mid(0,1).toHex().toUInt();
}



BanNewJoinCmd::BanNewJoinCmd(QObject *parent):
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::ZigbeeConfigProtocol;
    this->m_functionCode = FunctionCode;
}

Package BanNewJoinCmd::toPackage()
{
    Package package;
    package.setFunction(FunctionCode);
    return package;
}

void BanNewJoinCmd::unPackage(Package package)
{
    QByteArray body = package.body();
  //  m_isSucceed = body.mid(0,1).toHex().toUInt();
}


ResNewZigbeeCmd::ResNewZigbeeCmd(QObject *parent):
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::ZigbeeConfigProtocol;
    this->m_functionCode = FunctionCode;
}

Package ResNewZigbeeCmd::toPackage()
{
    Package package;
    package.setFunction(FunctionCode);
    return package;
}

void ResNewZigbeeCmd::unPackage(Package package)
{
    QByteArray body = package.body();
  //  m_isSucceed = body.mid(0,1).toHex().toUInt();
}


QueryNewZigbeeParamCmd::QueryNewZigbeeParamCmd(QObject *parent):
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::ZigbeeConfigProtocol;
    this->m_functionCode = FunctionCode;
}

Package QueryNewZigbeeParamCmd::toPackage()
{
    Package package;
    package.setFunction(FunctionCode);
    return package;
}

void QueryNewZigbeeParamCmd::unPackage(Package package)
{
    QByteArray body = package.body();
  //  m_isSucceed = body.mid(0,1).toHex().toUInt();
}

QueryZigbeeVersionCmd::QueryZigbeeVersionCmd(QObject *parent):
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::ZigbeeConfigProtocol;
    this->m_functionCode = FunctionCode;
}

Package QueryZigbeeVersionCmd::toPackage()
{
    Package package;
    package.setFunction(FunctionCode);
    return package;
}

void QueryZigbeeVersionCmd::unPackage(Package package)
{
    QByteArray body = package.body();
  //  m_isSucceed = body.mid(0,1).toHex().toUInt();
}
